package Global;

import java.io.IOException;
import java.io.Serializable;

public class DDBQuery implements Serializable
{
	public String toSite;
	public String query;
	public DDBQuery(String site,String sql)
	{
		toSite = site;
		query = sql;
	}
	
	private void writeObject(java.io.ObjectOutputStream out) throws IOException
	{
		out.defaultWriteObject();
		out.writeObject(toSite);
		out.writeObject(query);
	}

	private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
	{
		in.defaultReadObject();
		toSite =(String) in.readObject();
		query =(String) in.readObject();
	}
}
